<template>
  <div>
    <el-form :model="form">
      <el-form-item label="一轮评审："> 通过 </el-form-item>

      <el-form-item label="得分："> <el-input v-model="form.score" /> </el-form-item>
      <el-form-item label="评语"
        ><el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="form.comments">
        </el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
        <el-button type="primary" @click="onSubmit">提交</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>

    <!-- <div class="bottom">  3.2要求注释
      <div>评审记录：</div>
      <el-table class="one-table" :data="dataList" stripe border row-key="id">
        <el-table-column label="日期" align="center" prop="" />
        <el-table-column label="评审人" align="center" prop="" />
        <el-table-column label="得分" align="center" prop="" />
        <el-table-column label="评语" align="center" prop="" />
      </el-table>
    </div> -->
  </div>
</template>

<script>
export default {
  props: ['info'],
  data() {
    return {
      form: {
        score: this.info.score,
        comments: this.info.comments
      },
      dataList: []
    }
  },
  methods: {
    onSubmit() {
      this.$emit('submit', this.form)
    }
  }
}
</script>

<style scoped>
.bottom {
  margin-top: 40px;
}

.one-table {
  margin-top: 20px;
}
</style>
